<template>
	<view>
		<view class="menu-item flex rcb" @tap="onPressNavItem(item)">
			<text class="menu-item-title">{{item.company_name}}</text>
			<text class="menu-item-icon cuIcon-right"></text>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			item: Object,
			index: Number
		},
		methods: {
			onPressNavItem(item) {
				uni.navigateTo({
					url: '/pages/work_bench/positionTaskList?page_flag=' + this.Constants.MY_COMPANY +'&company_id=' + item.company_id,
				})
			}
		}
	}
</script>

<style scoped lang="stylus">
	.menu-item {
		border-radius: 6rpx;
		background: #FFFFFF;
		padding: 30rpx 30rpx;
		margin: 30rpx 30rpx 0;

		.menu-item-title {
			color: #333333;
			font-size: 30rpx;
		}

		.menu-item-icon {
			color: #999999;
			font-size: 30rpx;
		}
	}
</style>
